<template>
    <h3>SearchMain</h3>
    <p>搜索的内容为：{{msg}}</p>
    <SearchDemo @someEvent="getdata"/>
</template>
<script>
import SearchDemo from './SearchDemo.vue'
export default{
    data(){
        return{
            msg:"",
        }
    },
    methods:{
        getdata(data){
            this.msg=data
        }

    },
    components:{
        SearchDemo
    }
}
</script>